export const TYPES = 'TYPES';
export const GET_TYPES = 'GET_TYPES';
export const ADD_BACK = 'ADD_BACK';
export const ADD_TYPE = 'ADD_TYPE';
export const UPDATE = 'UPDATE';
export const SG_UPDATE = 'SG_UPDATE';

export const TypesList = types => {
	return {
		type:TYPES,
		types
	}
}
export const getTypes = data => {
	return {
		type:GET_TYPES,
		data
	}
}
export const addType = data => {
	return {
		type:ADD_TYPE,
		data
	}
}
export const addBack = res => {
	return {
		type:ADD_BACK,
		res
	}
}
export const updateType = data => {
	return {
		type:UPDATE,
		data
	}
}
export const SGupdateType = data => {
	return {
		type:SG_UPDATE,
		data
	}
}


export const REMOVE_TYPE = 'REMOVE_TYPE';
export const RM_TYPE = 'RM_TYPE';
export const removeType = id => ({
	type:RM_TYPE,
	id
})
export const SGremoveType = data => ({
	type:REMOVE_TYPE,
	data
})